// 封装订单页接口
import httpInstance from '@/utils/http'

// 获取订单数据
export const getCheckInfoAPI = () => {
  return httpInstance({
    url: '/member/order/pre'
  })
}

// 生成订单到支付页、清空购物车
export const createOrderAPI = (data) => {
  return httpInstance({
    url: '/member/order',
    method: 'POST',
    data
  })
}
